class CreateAllowpagesPermissions < ActiveRecord::Migration
  def self.up
      create_table :allowpages_permissions, :id => false do |t|
          t.references :allowpage
          t.references :permission
       end
    add_index :allowpages_permissions, [:allowpage_id, :permission_id]
    add_index :allowpages_permissions, [:permission_id, :allowpage_id]
       
  end

  def self.down
      drop_table :allowpages_permissions
  end
end
